package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {

    List<Role> findAll();

    void add(Role role, Integer[] userIds, Integer[] menuIds);

    PageResult findPage(String queryString, Integer currentPage, Integer pageSize);

    Role findById(Integer id);

    List<Integer> findUserIdsByRoleId(Integer id);

    List<Integer> findMenuIdsByRoleId(Integer id);

    void editRole(Role role, Integer[] userIds, Integer[] menuIds);

    void deleteRole(Integer id);
}
